package org.linloong.config.typehandler;

import com.alibaba.fastjson2.JSONArray;
import org.apache.ibatis.type.JdbcType;
import org.apache.ibatis.type.MappedJdbcTypes;
import org.apache.ibatis.type.MappedTypes;

/**
 * @Author: kw
 * @date: 2024-05-21 8:44
 */
@MappedTypes({JSONArray.class})
@MappedJdbcTypes(JdbcType.OTHER)
public class JSONArrayTypeHandler extends AbstractJsonTypeHandler<JSONArray> {
    @Override
    protected JSONArray parse(String json) {
        return JSONArray.parse(json);
    }
}
